﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using IISHostingApplication;

namespace OOP33rdBatchApplication
{
    public partial class StudentPage : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                List<Student> students = (List<Student>)Session["Student"];
                TextBox1.Text = "";
                foreach (var student in students)
                {
                    TextBox1.Text += student.Name + Environment.NewLine;
                }
            }
            
        }
    }
}